-- GENERATED SPELL FOR [Ayit] --


function spell0_18540(pUnit, Event) --@Shield Bash,n/a--
pUnit:FullCastSpellOnTarget(11972,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18540', 8257, 1)
end

function Sorts_18540(pUnit, Event)
local choix_sorts_18540 = math.random(0, 0)
if choix_sorts_18540 == 0 then
pUnit:RegisterEvent('spell0_18540', 1, 1)
end
end

function mob18540_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18540', math.random(1500, 3000), 1)
end

function mob18540_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18540_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18540_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18540, 1, 'mob18540_Action')
RegisterUnitEvent(18540, 2, 'mob18540_Leave')
RegisterUnitEvent(18540, 3, 'mob18540_Kill')
RegisterUnitEvent(18540, 4, 'mob18540_Die')
